﻿using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace Coldairarrow.Entity.PB
{
    /// <summary>
    /// PB_ProductionOrderDetail
    /// </summary>
    [Table("PB_ProductionOrderDetail")]
    public partial class PB_ProductionOrderDetail
    {

        /// <summary>
        /// Id
        /// </summary>
        [Key, Column(Order = 1)]
        public String Id { get; set; }

        /// <summary>
        /// 主表ID
        /// </summary>
        public String ParentId { get; set; }

        /// <summary>
        /// 物料ID
        /// </summary>
        public String MaterialId { get; set; }

        /// <summary>
        /// 工序ID
        /// </summary>
        public String ProcecureId { get; set; }

        /// <summary>
        /// 车间ID
        /// </summary>
        public String WorkshopId { get; set; }

        /// <summary>
        /// 工位ID
        /// </summary>
        public String StationId { get; set; }

        /// <summary>
        /// 计划数量
        /// </summary>
        public Double? Nums { get; set; }
   
        /// <summary>
        /// 开工日期
        /// </summary>
        public DateTime? StartDate { get; set; }
        /// <summary>
        /// 完工日期
        /// </summary>
        public DateTime EndDate { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        public String Remarks { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime? CreateTime { get; set; }

        /// <summary>
        /// 创建人ID
        /// </summary>
        public String CreatorId { get; set; }

        /// <summary>
        /// 删除状态：0=未删除；1＝已删除；
        /// </summary>
        public Boolean? Deleted { get; set; }

        /// <summary>
        /// 是否质检：0=否；1=是
        /// </summary>
        public Boolean? HasCheck { get; set; }

        /// <summary>
        /// 条形码
        /// </summary>
        public String QrCode { get; set; }
        /// <summary>
        /// 成品
        /// </summary>
        public String Finishedproduct { get; set; }
        /// <summary>
        /// 材质
        /// </summary>
        public String Ofmaterial { get; set; }
        /// <summary>
        /// 孔距
        /// </summary>
        public String Holespacing { get; set; }
        /// <summary>
        /// 生产数量
        /// </summary>
        public Double? Productionquantity { get; set; }
        /// <summary>
        /// 已完成数量
        /// </summary>
        public Double? CompleteNums { get; set; }

        /// <summary>
        /// 状态：0-未完成；1-已完成
        /// </summary>
        public int? State { get; set; }

        /// <summary>
        /// 最后入库时间
        /// </summary>
        public DateTime? WarehousingTime { get; set; }

    }

    public class PB_ProductionOrderDetailNums {
        public double? Productionquantity { get; set; }
        public double? CompleteNums { get; set; }
    }
}